.class final Lcom/wqmobile/sdk/widget/r;
.super Ljava/lang/Object;

# interfaces
.implements Landroid/view/View$OnClickListener;


# instance fields
.field private synthetic a:Lcom/wqmobile/sdk/widget/ADView;


# direct methods
.method constructor <init>(Lcom/wqmobile/sdk/widget/ADView;)V
    .locals 0

    iput-object p1, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-direct {p0}, Ljava/lang/Object;-><init>()V

    return-void
.end method


# virtual methods
.method public final onClick(Landroid/view/View;)V
    .locals 3

    const-string v1, "click on view"

    invoke-static {v1}, Lcom/wqmobile/sdk/a/f;->a(Ljava/lang/String;)V

    iget-object v1, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v1}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;)Ljava/util/List;

    move-result-object v1

    invoke-interface {v1}, Ljava/util/List;->size()I

    move-result v1

    if-lez v1, :cond_0

    iget-object v1, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v1}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;)Ljava/util/List;

    move-result-object v1

    const/4 v2, 0x0

    invoke-interface {v1, v2}, Ljava/util/List;->get(I)Ljava/lang/Object;

    move-result-object v1

    check-cast v1, Lcom/wqmobile/sdk/model/AdvertisementProperties;

    iget-object v2, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v2}, Lcom/wqmobile/sdk/widget/ADView;->u(Lcom/wqmobile/sdk/widget/ADView;)Landroid/widget/LinearLayout;

    move-result-object v2

    if-ne p1, v2, :cond_1

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AdvertisementProperties;->getMedia()Lcom/wqmobile/sdk/model/AdvertisementDetail;

    move-result-object v1

    invoke-virtual {v1}, Lcom/wqmobile/sdk/model/AdvertisementDetail;->getUrl()Ljava/lang/String;

    move-result-object v1

    const-string v2, "Video path"

    invoke-static {v2, v1}, Landroid/util/Log;->d(Ljava/lang/String;Ljava/lang/String;)I

    iget-object v2, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v2, v1}, Lcom/wqmobile/sdk/widget/ADView;->c(Lcom/wqmobile/sdk/widget/ADView;Ljava/lang/String;)V

    :cond_0
    :goto_0
    return-void

    :cond_1
    invoke-virtual {p1}, Ljava/lang/Object;->getClass()Ljava/lang/Class;

    move-result-object v1

    const-class v2, Landroid/widget/FrameLayout;

    if-ne v1, v2, :cond_2

    move-object v0, p1

    check-cast v0, Landroid/widget/FrameLayout;

    move-object v1, v0

    invoke-virtual {v1}, Landroid/widget/FrameLayout;->removeAllViews()V

    const/16 v1, 0x8

    invoke-virtual {p1, v1}, Landroid/view/View;->setVisibility(I)V

    iget-object v1, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    const/4 v2, 0x1

    invoke-static {v2}, Ljava/lang/Boolean;->valueOf(Z)Ljava/lang/Boolean;

    move-result-object v2

    invoke-static {v1, v2}, Lcom/wqmobile/sdk/widget/ADView;->a(Lcom/wqmobile/sdk/widget/ADView;Ljava/lang/Boolean;)V

    :cond_2
    iget-object v1, p0, Lcom/wqmobile/sdk/widget/r;->a:Lcom/wqmobile/sdk/widget/ADView;

    invoke-static {v1}, Lcom/wqmobile/sdk/widget/ADView;->v(Lcom/wqmobile/sdk/widget/ADView;)V

    goto :goto_0
.end method
